import Mock from "mockjs"

const data=Mock.mock({
    "list|50":[{
        "img":"@image(100x100,@color)",
        "tit":"@ctitle",
        "desc":"@cword(10,15)",
        "id":"@id",
        "price|1-999":1
    }]
})

Mock.mock('/api/list','post',()=>{
    return ({
        code:200,
        data:data.list
    })
})